// export const handleReset = <T extends Record<string, any>>(form: T) => {
//   reset(form)
// }

// export const handleDestroy = <T extends Record<string, any>>(form: T) => {
//   reset(form)
// }

// const reset = <T extends Record<string, any>>(form: T) => {
//   Object.keys(form).forEach((key) => {
//     form[key] = null
//   })
// }

export const handleReset = (form: BaseObject) => {
  Object.keys(form).forEach((key) => {
    form[key] = null
  })
}
